<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<?php echo $skin?>/pub.js"></script>
<title>
<?php
if(!empty($title))
{
	$title	=	$title.' - 手机书架网';
}
elseif(!empty($book['title']))
{
	$title	=	$book['title'].(!empty($page)?" - {$page[0]}页":'').' - 手机书架网';
}
else
{
	$title	=	'手机书架网';
}
echo $title;
?>
</title>
<link href="<?php echo $skin;?>/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo $root?>/util/jquery.min.js"></script>
</head>
<body>
<ul id="menu">
	<li><a href="<?php echo url('index');?>">书架</a></li>
<?php if(empty($_SESSION['USER'])){ ?>
	<li><a href="<?php echo url('user-reg') ?>">注册</a></li>
	<li><a href="<?php echo url('user-login') ?>">登陆</a></li>
<?php }else{ ?>
	<li><a href="<?php echo url('user-addbook')?>">添加书籍</a></li>
	<li><a href="<?php echo url('user-listbook')?>">管理书籍</a></li>

	<li><a href="<?php echo url('user-info') ?>">个人信息</a></li>
	<li><a href="<?php echo url('user-logout') ?>">退出</a></li>
<?php } ?>
</ul>
